<%--
*@Description 
*@Author KingTeng
*@Date 2022/3/9
*@Time 14:40
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>

<%@include file="header.jsp"%>
<%@include file="top.jsp"%>

<table class="table table-bordered">

    <li>
        <br/><br/>
        <h1>
            订单界面
        </h1>
        <div>
            <table class="table">
                <thead>
                <tr>
                    <th>订单号</th>
                    <th>检测点编号</th>
                    <th>创建时间</th>
                    <th>确认日期</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${orders}" var="order" >
                    <tr>
                        <td>${order.ordercode}</td>
                        <td>${order.address}</td>
                        <td>${order.createdate}</td>
                        <td>${order.confirmdate}</td>
                        <c:if test="${order.status=='waitConfirm'}">
                            <td bgcolor="red">${order.status}</td>
                        </c:if>
                        <c:if test="${order.status=='confirmed'}">
                            <td bgcolor="green">${order.status}</td>
                        </c:if>
                        <td><a href="${pageContext.request.contextPath}/OrderFindByID?oid=${order.id}">查看</a></td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </li>
</table>